package com.cc8w.mapper;

import com.cc8w.entity.UserEntity;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserMapper {
    @Autowired
    private HibernateTemplate hibernateTemplate;
    public UserEntity getUser(){

        UserEntity user = hibernateTemplate.get(UserEntity.class,1);
        return user;

    }
    
    
    public UserEntity getUserAll() {
    	return null;
    }
    

    public UserEntity getUserPage() {

    	hibernateTemplate.findByExample(UserEntity.class, 1, 2);
		return null;

    }
}
